package com.example.system.web;

import com.example.system.pojo.Dmessage;
import com.example.system.service.IMessageService;
import com.example.system.util.ServerResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DmessageController {
    @Autowired
    IMessageService messageService;
    @PostMapping("messageAdd")
    public ServerResponse messageAdd(Dmessage dmessage){

        return  messageService.messageAdd(dmessage);

    }

    @PostMapping("updamessage")
    public ServerResponse updamessage(){

        return null;
    }
}
